package com.mzj.saas.mservice.sys.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/*
*应用权限表
 */
@Entity
@Table(name = "saas_permission")
public class Permission extends IdEntity {
    /*
    *父级id
     */
    @Column(name = "parent_id", nullable = true)
    private Long parentId;
    /*
    *名称
     */
    @Column(name = "name", nullable = true)
    private String name;
    /*
     *1:菜单，2：功能
     */
    @Column(name = "type", nullable = true)
    private Short type;
    /*
    *编码
     */
    @Column(name = "code", nullable = true)
    private String code;

    /*
    *请求路径
     */
    @Column(name = "url", nullable = true)
    private String url;
    /*
    *方法
     */
    @Column(name = "method", nullable = true)
    private String method;
    /*
    *logo
     */
    @Column(name = "icon", nullable = true)
    private String icon;
    /*
    *排序号
     */
    @Column(name = "sortby", nullable = true)
    private Integer sortby;

    public Integer getSortby() {
        return sortby;
    }

    public void setSortby(Integer sortby) {
        this.sortby = sortby;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
